package com.zzy.state;
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
        NPC npc = new NPC();
        int a = print();
        while (0 < a && a < 6) {
            npc.setAction(a);
            npc.Handle();
            npc.getActionSet().get(a).action(npc);
            System.out.println("--------------------------------------");
            a = print();
        }
    }
	public static int print() {
        System.out.println("请选择与Fairy的交互:");
        System.out.println("1.与她对话");
        System.out.println("2.谄媚她");
        System.out.println("3.咒骂她");
        System.out.println("4.与她交换装备");
        System.out.println("5.给她礼物");

        System.out.print("请输入：");
        Scanner sc = new Scanner(System.in);
        int temp = sc.nextInt();
        return temp;
    }

}
